<template>
  <div class="title-container">
    <h1>{{ title }}</h1>
    <p v-if="content">{{ content }}</p>
  </div>
</template>

<script lang="ts" setup>
defineProps(['title', 'content'])
</script>

<style scoped lang="scss">
.title-container {
  text-align: center;
  margin-top: 2rem;

  h1 {
    font-size: 1.5rem;
    font-weight: 400;
  }

  p {
    font-size: 1rem;
    margin-top: 1rem;
  }
}
</style>